previously macOS let you resize the activity window, resulting in
strange visual artifacts...
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
\r
readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth\r
\r
- Component.onCompleted: Systray.forceWindowInit(trayWindow)\r
+ Component.onCompleted: {\r
+ Systray.forceWindowInit(trayWindow)\r
+ if (Systray.useNormalWindow) {\r
+ return;\r
+ }\r
+\r
+ // do not allow this window to be resized when it's frameless\r
+ this.minimumWidth = this.maximumWidth = this.width\r
+ this.minimumHeight = this.maximumHeight = this.height\r
+ }\r
\r
// Close tray window when focus is lost (e.g. click somewhere else on the screen)\r
onActiveChanged: {\r